package com.lqm.dao;

import com.lqm.entity.home.ProjectType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * @program: CrowdFunding
 * @description
 * @author: lqm
 * @create: 2018-12-17 16:21
 */

public interface ProjectTypeDao extends JpaRepository<ProjectType,Integer>, PagingAndSortingRepository<ProjectType,Integer> {


    List<ProjectType> findAllByStatus(Integer status);
    Integer countAllBy();
}
